<template>
  <div>

    <div class="guess">
      <img class="guess_icon" src="http://img1.qunarzz.com/piao/fusion/1711/89/ebc329f16c55bb02.png"
      alt="本周热门"/>
      <span class="guess_title">猜你喜欢</span>
    </div>

    <ul>
      <li
        class="item border-bottom"
        v-for="item of wlist"
        :key="item.id"
      >
        <div class="item-img-wrapper">
          <img class="item-img" :src="item.imgUrl" />
        </div>
        <div class="item-info">
          <p class="item-title">{{item.title}}</p>
          <p class="item-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>

    <div class="the_short">👍小伙伴们都收藏了，去看看吧~</div>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props:{
    wlist:Array
  }
}
</script>

<style lang="stylus" scoped>
  .guess
    width 100%
    height .5rem
    padding .24rem 0 0.26rem 0
    .guess_icon
      width .35rem
      height .35rem
      margin-left .13rem
      overflow hidden
      float left
    .guess_title
      font-size .35rem
      float left
  .title
    line-height: .8rem
    background: #eee
    text-indent: .2rem
  .item-img-wrapper
    overflow: hidden
    height: 0
    padding-bottom: 37.09%
    .item-img
      width: 100%
  .item-info
    padding: .1rem
    .item-title
      line-height: .54rem
      font-size: .32rem
      overflow hidden
      white-space nowrap
      text-overflow ellipsis
    .item-desc
      line-height: .4rem
      color: #ccc
      overflow hidden
      white-space nowrap
      text-overflow ellipsis
</style>
